home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPSETUP.ZIP / APPGRADE.C < prev    next >
C/C++ Source or Header  |  1993-02-04  |  845b  |  38 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include "appsetup.h"
  8.  
  9. /*-------------------------------------------------------------------------*/
  10. BOOL WINAPI UpgradeDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
  11.     {
  12.     static DLGPROC  lpfnInitDlgProc;
  13.  
  14.     switch(message)
  15.     {
  16.     case WM_INITDIALOG:
  17.         return TRUE;
  18.  
  19.     case WM_COMMAND:
  20.         switch(wParam)
  21.         {
  22.         case IDUPGRADE_YES:
  23.             lpfnInitDlgProc = (DLGPROC) MakeProcInstance(InitDlgProc, hInst);
  24.             DialogBox(hInst, "InitDlg", hDlg, lpfnInitDlgProc);
  25.             FreeProcInstance((FARPROC) lpfnInitDlgProc);
  26.             EndDialog(hDlg, 0);
  27.             return TRUE;
  28.  
  29.         case IDUPGRADE_NO:
  30.             EndDialog(hDlg, 0);
  31.             return TRUE;
  32.  
  33.         }
  34.         break;
  35.     }
  36.     return FALSE;
  37.     }
  38.